package liangtWorkSpace.springTest.sett.dao;

/**
 * @author liangt
 * @ClassName: Person
 * @title: Person
 * @projectName liangtWorkSpace.springTest.sett.dao
 * @description: 演示设值注入
 * @date 2020/10/13 16:12
 */
public class PersonDao {
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "PersonDao{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    /**
     * 无参构造
     * @MethodName PersonDao
     * @param
     * @return {@link null}
     * @throws
     * @author liangt
     * @date 2020/10/13 16:13
     */
    public PersonDao() {
    }

    /**
     * 有参构造
     * @MethodName PersonDao
     * @param name
     * @param age
     * @return {@link null}
     * @throws
     * @author liangt
     * @date 2020/10/13 16:13
     */
    public PersonDao(String name, int age) {
        super();
        this.name = name;
        this.age = age;
    }
}
